home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 126-150 / disk_130 / patedit / patedit.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  23KB  |  616 lines

  1. /* include header for pw source generation */
  2.  
  3. #include   "intuition/intuition.h"
  4.  
  5. struct NewScreen NewScreenStructure = {
  6.     0,0,    /* screen XY origin relative to View */
  7.     320,200,    /* screen width and height */
  8.     3,    /* screen depth (number of bitplanes) */
  9.     0,1,    /* detail and block pens */
  10.     NULL,    /* display modes for this screen */
  11.     CUSTOMSCREEN,    /* screen type */
  12.     NULL,    /* pointer to default screen font */
  13.     (UBYTE *)"Pattern Editor by Don Hyde",    /* screen title */
  14.     NULL,    /* first in list of custom screen gadgets */
  15.     NULL    /* pointer to custom BitMap structure */
  16. };
  17.  
  18. #define NEWSCREENSTRUCTURE NewScreenStructure
  19.  
  20. USHORT Palette[] = {
  21.     0x0000,    /* color #0 */
  22.     0x0EED,    /* color #1 */
  23.     0x0532,    /* color #2 */
  24.     0x0080,    /* color #3 */
  25.     0x08B4,    /* color #4 */
  26.     0x0FC0,    /* color #5 */
  27.     0x0F00,    /* color #6 */
  28.     0x022F    /* color #7 */
  29. #define PaletteColorCount 8
  30. };
  31.  
  32. #define PALETTE Palette
  33.  
  34. SHORT BorderVectors1[] = {
  35.     0,0,
  36.     81,0,
  37.     81,17,
  38.     0,17,
  39.     0,0
  40. };
  41. struct Border Border1 = {
  42.     -2,-1,    /* XY origin relative to container TopLeft */
  43.     3,0,JAM1,    /* front pen, back pen and drawmode */
  44.     5,    /* number of XY vectors */
  45.     BorderVectors1,    /* pointer to XY vectors */
  46.     NULL    /* next border in list */
  47. };
  48.  
  49. struct IntuiText IText1 = {
  50.     3,0,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  51.     20,4,    /* XY origin relative to container TopLeft */
  52.     NULL,    /* font pointer or NULL for default */
  53.     (UBYTE *)"Pen 2",    /* pointer to text */
  54.     NULL    /* next IntuiText structure */
  55. };
  56.  
  57. struct Gadget Pen2Sample = {
  58.     NULL,    /* next gadget */
  59.     225,145,    /* origin XY of hit box relative to window TopLeft */
  60.     78,16,    /* hit box width and height */
  61.     NULL,    /* gadget flags */
  62.     RELVERIFY,    /* activation flags */
  63.     BOOLGADGET,    /* gadget type flags */
  64.     (APTR)&Border1,    /* gadget border or image to be rendered */
  65.     NULL,    /* alternate imagery for selection */
  66.     &IText1,    /* first IntuiText structure */
  67.     NULL,    /* gadget mutual-exclude long word */
  68.     NULL,    /* SpecialInfo structure */
  69.     NULL,    /* user-definable data */
  70.     NULL    /* pointer to user-definable data */
  71. };
  72.  
  73. SHORT BorderVectors2[] = {
  74.     0,0,
  75.     81,0,
  76.     81,17,
  77.     0,17,
  78.     0,0
  79. };
  80. struct Border Border2 = {
  81.     -2,-1,    /* XY origin relative to container TopLeft */
  82.     3,0,JAM1,    /* front pen, back pen and drawmode */
  83.     5,    /* number of XY vectors */
  84.     BorderVectors2,    /* pointer to XY vectors */
  85.     NULL    /* next border in list */
  86. };
  87.  
  88. struct IntuiText IText2 = {
  89.     3,0,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  90.     19,4,    /* XY origin relative to container TopLeft */
  91.     NULL,    /* font pointer or NULL for default */
  92.     (UBYTE *)"Pen 1",    /* pointer to text */
  93.     NULL    /* next IntuiText structure */
  94. };
  95.  
  96. struct Gadget Pen1Sample = {
  97.     &Pen2Sample,    /* next gadget */
  98.     123,145,    /* origin XY of hit box relative to window TopLeft */
  99.     78,16,    /* hit box width and height */
  100.     NULL,    /* gadget flags */
  101.     RELVERIFY,    /* activation flags */
  102.     BOOLGADGET,    /* gadget type flags */
  103.     (APTR)&Border2,    /* gadget border or image to be rendered */
  104.     NULL,    /* alternate imagery for selection */
  105.     &IText2,    /* first IntuiText structure */
  106.     NULL,    /* gadget mutual-exclude long word */
  107.     NULL,    /* SpecialInfo structure */
  108.     NULL,    /* user-definable data */
  109.     NULL    /* pointer to user-definable data */
  110. };
  111.  
  112. SHORT BorderVectors3[] = {
  113.     0,0,
  114.     67,0,
  115.     67,129,
  116.     0,129,
  117.     0,0
  118. };
  119. struct Border Border3 = {
  120.     -2,-1,    /* XY origin relative to container TopLeft */
  121.     3,0,JAM1,    /* front pen, back pen and drawmode */
  122.     5,    /* number of XY vectors */
  123.     BorderVectors3,    /* pointer to XY vectors */
  124.     NULL    /* next border in list */
  125. };
  126.  
  127. struct Gadget Grid = {
  128.     &Pen1Sample,    /* next gadget */
  129.     25,23,    /* origin XY of hit box relative to window TopLeft */
  130.     64,128,    /* hit box width and height */
  131.     GADGHBOX+GADGHIMAGE,    /* gadget flags */
  132.     RELVERIFY,    /* activation flags */
  133.     BOOLGADGET,    /* gadget type flags */
  134.     (APTR)&Border3,    /* gadget border or image to be rendered */
  135.     NULL,    /* alternate imagery for selection */
  136.     NULL,    /* first IntuiText structure */
  137.     NULL,    /* gadget mutual-exclude long word */
  138.     NULL,    /* SpecialInfo structure */
  139.     NULL,    /* user-definable data */
  140.     NULL    /* pointer to user-definable data */
  141. };
  142.  
  143. SHORT BorderVectors4[] = {
  144.     0,0,
  145.     186,0,
  146.     186,116,
  147.     0,116,
  148.     0,0
  149. };
  150. struct Border Border4 = {
  151.     -2,-1,    /* XY origin relative to container TopLeft */
  152.     3,0,JAM1,    /* front pen, back pen and drawmode */
  153.     5,    /* number of XY vectors */
  154.     BorderVectors4,    /* pointer to XY vectors */
  155.     NULL    /* next border in list */
  156. };
  157.  
  158. struct Gadget Bigsample = {
  159.     &Grid,    /* next gadget */
  160.     121,23,    /* origin XY of hit box relative to window TopLeft */
  161.     183,115,    /* hit box width and height */
  162.     NULL,    /* gadget flags */
  163.     RELVERIFY,    /* activation flags */
  164.     BOOLGADGET,    /* gadget type flags */
  165.     (APTR)&Border4,    /* gadget border or image to be rendered */
  166.     NULL,    /* alternate imagery for selection */
  167.     NULL,    /* first IntuiText structure */
  168.     NULL,    /* gadget mutual-exclude long word */
  169.     NULL,    /* SpecialInfo structure */
  170.     NULL,    /* user-definable data */
  171.     NULL    /* pointer to user-definable data */
  172. };
  173.  
  174. struct PropInfo SizerSInfo = {
  175.     AUTOKNOB+FREEVERT,    /* PROPINFO flags */
  176.     -1,-32222,    /* horizontal and vertical pot values */
  177.     -1,1638,    /* horizontal and vertical body values */
  178. };
  179.  
  180. struct Image Image1 = {
  181.     0,61,    /* XY origin relative to container TopLeft */
  182.     4,4,    /* Image width and height in pixels */
  183.     0,    /* number of bitplanes in Image */
  184.     NULL,    /* pointer to ImageData */
  185.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  186.     NULL    /* next Image structure */
  187. };
  188.  
  189. struct Gadget Sizer = {
  190.     &Bigsample,    /* next gadget */
  191.     99,24,    /* origin XY of hit box relative to window TopLeft */
  192.     12,128,    /* hit box width and height */
  193.     NULL,    /* gadget flags */
  194.     RELVERIFY,    /* activation flags */
  195.     PROPGADGET,    /* gadget type flags */
  196.     (APTR)&Image1,    /* gadget border or image to be rendered */
  197.     NULL,    /* alternate imagery for selection */
  198.     NULL,    /* first IntuiText structure */
  199.     NULL,    /* gadget mutual-exclude long word */
  200.     (APTR)&SizerSInfo,    /* SpecialInfo structure */
  201.     NULL,    /* user-definable data */
  202.     NULL    /* pointer to user-definable data */
  203. };
  204.  
  205. SHORT BorderVectors5[] = {
  206.     0,0,
  207.     68,0,
  208.     68,21,
  209.     0,21,
  210.     0,0
  211. };
  212. struct Border Border5 = {
  213.     -2,-1,    /* XY origin relative to container TopLeft */
  214.     3,0,JAM1,    /* front pen, back pen and drawmode */
  215.     5,    /* number of XY vectors */
  216.     BorderVectors5,    /* pointer to XY vectors */
  217.     NULL    /* next border in list */
  218. };
  219.  
  220. struct IntuiText IText3 = {
  221.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  222.     11,6,    /* XY origin relative to container TopLeft */
  223.     NULL,    /* font pointer or NULL for default */
  224.     (UBYTE *)"Clear",    /* pointer to text */
  225.     NULL    /* next IntuiText structure */
  226. };
  227.  
  228. struct Gadget Gadget3 = {
  229.     &Sizer,    /* next gadget */
  230.     24,160,    /* origin XY of hit box relative to window TopLeft */
  231.     65,20,    /* hit box width and height */
  232.     NULL,    /* gadget flags */
  233.     RELVERIFY,    /* activation flags */
  234.     BOOLGADGET,    /* gadget type flags */
  235.     (APTR)&Border5,    /* gadget border or image to be rendered */
  236.     NULL,    /* alternate imagery for selection */
  237.     &IText3,    /* first IntuiText structure */
  238.     NULL,    /* gadget mutual-exclude long word */
  239.     NULL,    /* SpecialInfo structure */
  240.     NULL,    /* user-definable data */
  241.     NULL    /* pointer to user-definable data */
  242. };
  243.  
  244. SHORT BorderVectors6[] = {
  245.     0,0,
  246.     83,0,
  247.     83,29,
  248.     0,29,
  249.     0,0
  250. };
  251. struct Border Border6 = {
  252.     -2,-1,    /* XY origin relative to container TopLeft */
  253.     3,0,JAM1,    /* front pen, back pen and drawmode */
  254.     5,    /* number of XY vectors */
  255.     BorderVectors6,    /* pointer to XY vectors */
  256.     NULL    /* next border in list */
  257. };
  258.  
  259. struct Gadget Pen2 = {
  260.     &Gadget3,    /* next gadget */
  261.     224,165,    /* origin XY of hit box relative to window TopLeft */
  262.     80,28,    /* hit box width and height */
  263.     NULL,    /* gadget flags */
  264.     RELVERIFY,    /* activation flags */
  265.     BOOLGADGET,    /* gadget type flags */
  266.     (APTR)&Border6,    /* gadget border or image to be rendered */
  267.     NULL,    /* alternate imagery for selection */
  268.     NULL,    /* first IntuiText structure */
  269.     NULL,    /* gadget mutual-exclude long word */
  270.     NULL,    /* SpecialInfo structure */
  271.     NULL,    /* user-definable data */
  272.     NULL    /* pointer to user-definable data */
  273. };
  274.  
  275. SHORT BorderVectors7[] = {
  276.     0,0,
  277.     83,0,
  278.     83,29,
  279.     0,29,
  280.     0,0
  281. };
  282. struct Border Border7 = {
  283.     -2,-1,    /* XY origin relative to container TopLeft */
  284.     3,0,JAM1,    /* front pen, back pen and drawmode */
  285.     5,    /* number of XY vectors */
  286.     BorderVectors7,    /* pointer to XY vectors */
  287.     NULL    /* next border in list */
  288. };
  289.  
  290. struct Gadget Pen1 = {
  291.     &Pen2,    /* next gadget */
  292.     122,165,    /* origin XY of hit box relative to window TopLeft */
  293.     80,28,    /* hit box width and height */
  294.     NULL,    /* gadget flags */
  295.     RELVERIFY,    /* activation flags */
  296.     BOOLGADGET,    /* gadget type flags */
  297.     (APTR)&Border7,    /* gadget border or image to be rendered */
  298.     NULL,    /* alternate imagery for selection */
  299.     NULL,    /* first IntuiText structure */
  300.     NULL,    /* gadget mutual-exclude long word */
  301.     NULL,    /* SpecialInfo structure */
  302.     NULL,    /* user-definable data */
  303.     NULL    /* pointer to user-definable data */
  304. };
  305.  
  306. #define GadgetList1 Pen1
  307.  
  308. struct IntuiText IText4 = {
  309.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  310.     0,0,    /* XY origin relative to container TopLeft */
  311.     NULL,    /* font pointer or NULL for default */
  312.     (UBYTE *)"Quit",    /* pointer to text */
  313.     NULL    /* next IntuiText structure */
  314. };
  315.  
  316. struct MenuItem MenuItem4 = {
  317.     NULL,    /* next MenuItem structure */
  318.     0,27,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  319.     80,8,    /* hit box width and height */
  320.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  321.     0,    /* each bit mutually-excludes a same-level Item */
  322.     (APTR)&IText4,    /* Item render  (IntuiText or Image or NULL) */
  323.     NULL,    /* Select render */
  324.     NULL,    /* alternate command-key */
  325.     NULL,    /* SubItem list */
  326.     MENUNULL    /* filled in by Intuition for drag selections */
  327. };
  328.  
  329. struct IntuiText IText5 = {
  330.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  331.     0,0,    /* XY origin relative to container TopLeft */
  332.     NULL,    /* font pointer or NULL for default */
  333.     (UBYTE *)"About",    /* pointer to text */
  334.     NULL    /* next IntuiText structure */
  335. };
  336.  
  337. struct MenuItem MenuItem3 = {
  338.     &MenuItem4,    /* next MenuItem structure */
  339.     0,18,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  340.     80,8,    /* hit box width and height */
  341.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  342.     0,    /* each bit mutually-excludes a same-level Item */
  343.     (APTR)&IText5,    /* Item render  (IntuiText or Image or NULL) */
  344.     NULL,    /* Select render */
  345.     NULL,    /* alternate command-key */
  346.     NULL,    /* SubItem list */
  347.     MENUNULL    /* filled in by Intuition for drag selections */
  348. };
  349.  
  350. struct IntuiText IText6 = {
  351.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  352.     0,0,    /* XY origin relative to container TopLeft */
  353.     NULL,    /* font pointer or NULL for default */
  354.     (UBYTE *)"Save",    /* pointer to text */
  355.     NULL    /* next IntuiText structure */
  356. };
  357.  
  358. struct MenuItem MenuItem2 = {
  359.     &MenuItem3,    /* next MenuItem structure */
  360.     0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  361.     80,8,    /* hit box width and height */
  362.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  363.     0,    /* each bit mutually-excludes a same-level Item */
  364.     (APTR)&IText6,    /* Item render  (IntuiText or Image or NULL) */
  365.     NULL,    /* Select render */
  366.     's',    /* alternate command-key */
  367.     NULL,    /* SubItem list */
  368.     MENUNULL    /* filled in by Intuition for drag selections */
  369. };
  370.  
  371. struct IntuiText IText7 = {
  372.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  373.     0,0,    /* XY origin relative to container TopLeft */
  374.     NULL,    /* font pointer or NULL for default */
  375.     (UBYTE *)"Load",    /* pointer to text */
  376.     NULL    /* next IntuiText structure */
  377. };
  378.  
  379. struct MenuItem MenuItem1 = {
  380.     &MenuItem2,    /* next MenuItem structure */
  381.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  382.     80,8,    /* hit box width and height */
  383.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  384.     0,    /* each bit mutually-excludes a same-level Item */
  385.     (APTR)&IText7,    /* Item render  (IntuiText or Image or NULL) */
  386.     NULL,    /* Select render */
  387.     'l',    /* alternate command-key */
  388.     NULL,    /* SubItem list */
  389.     MENUNULL    /* filled in by Intuition for drag selections */
  390. };
  391.  
  392. struct Menu Menu1 = {
  393.     NULL,    /* next Menu structure */
  394.     0,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  395.     75,0,    /* Menu hit box width and height */
  396.     MENUENABLED,    /* Menu flags */
  397.     "Project",    /* text of Menu name */
  398.     &MenuItem1    /* MenuItem linked list pointer */
  399. };
  400.  
  401. #define MenuList1 Menu1
  402.  
  403. struct NewWindow NewWindowStructure1 = {
  404.     0,0,    /* window XY origin relative to TopLeft of screen */
  405.     320,200,    /* window width and height */
  406.     0,1,    /* detail and block pens */
  407.     MOUSEMOVE+GADGETUP+MENUPICK+REQCLEAR,    /* IDCMP flags */
  408.     BACKDROP+ACTIVATE+NOCAREREFRESH,    /* other window flags */
  409.     &Pen1,    /* first gadget in gadget list */
  410.     NULL,    /* custom CHECKMARK imagery */
  411.     (UBYTE *)"Pattern Editor by Don Hyde",    /* window title */
  412.     NULL,    /* custom screen pointer */
  413.     NULL,    /* custom bitmap */
  414.     5,5,    /* minimum width and height */
  415.     640,200,    /* maximum width and height */
  416.     CUSTOMSCREEN    /* destination screen type */
  417. };
  418.  
  419. USHORT ImageData2[] = {
  420.     0x01E0,0x0000,0x0000,0x0000,0x0698,0x0000,0x0000,0x0000,
  421.     0x0884,0x0000,0x0000,0x0000,0x1082,0x0000,0x4100,0x1000,
  422.     0x1081,0x0000,0xC100,0x2800,0x1080,0x8001,0x4100,0x2800,
  423.     0x1080,0x4006,0x4100,0x2800,0x1080,0x4000,0x4100,0x2800,
  424.     0x0880,0x2000,0x4100,0x2800,0x0680,0x2000,0x4100,0x2800,
  425.     0x0180,0x2000,0x4100,0x2800,0x00F0,0x2000,0x4100,0x2800,
  426.     0x008F,0xFF00,0x4148,0x18C0,0x0080,0x29F4,0x7FC8,0xF120,
  427.     0x3D00,0x5E9A,0x7149,0x1220,0x4380,0x5092,0x494B,0x12C0,
  428.     0x8240,0x9092,0x454D,0x1B08,0x8C21,0x0F12,0x4338,0xE4F0,
  429.     0x701E,0x0001,0x1108,0x0000,0x0000,0x0000,0xE018,0x0000,
  430.     0x0000,0x0000,0x0018,0x0000,0x0000,0x0000,0x0028,0x0000,
  431.     0x0000,0x0000,0x0028,0x0000,0x0000,0x0000,0x0028,0x0000,
  432.     0x0000,0x0000,0x0010,0x0000,0x01E0,0x0000,0x0000,0x0000,
  433.     0x0698,0x0000,0x0000,0x0000,0x0884,0x0000,0x0000,0x0000,
  434.     0x1082,0x0000,0x4100,0x1000,0x1081,0x0000,0xC100,0x2800,
  435.     0x1080,0x8001,0x4100,0x2800,0x1080,0x4006,0x4100,0x2800,
  436.     0x1080,0x4000,0x4100,0x2800,0x0880,0x2000,0x4100,0x2800,
  437.     0x0680,0x2000,0x4100,0x2800,0x0180,0x2000,0x4100,0x2800,
  438.     0x00F0,0x2000,0x4100,0x2800,0x008F,0xFF00,0x4148,0x18C0,
  439.     0x0080,0x29F4,0x7FC8,0xF120,0x3D00,0x5E9A,0x7149,0x1220,
  440.     0x4380,0x5092,0x494B,0x12C0,0x8240,0x9092,0x454D,0x1B08,
  441.     0x8C21,0x0F12,0x4338,0xE4F0,0x701E,0x0001,0x1108,0x0000,
  442.     0x0000,0x0000,0xE018,0x0000,0x0000,0x0000,0x0018,0x0000,
  443.     0x0000,0x0000,0x0028,0x0000,0x0000,0x0000,0x0028,0x0000,
  444.     0x0000,0x0000,0x0028,0x0000,0x0000,0x0000,0x0010,0x0000,
  445.     0x01E0,0x0000,0x0000,0x0000,0x0698,0x0000,0x0000,0x0000,
  446.     0x0884,0x0000,0x0000,0x0000,0x1082,0x0000,0x4100,0x1000,
  447.     0x1081,0x0000,0xC100,0x2800,0x1080,0x8001,0x4100,0x2800,
  448.     0x1080,0x4006,0x4100,0x2800,0x1080,0x4000,0x4100,0x2800,
  449.     0x0880,0x2000,0x4100,0x2800,0x0680,0x2000,0x4100,0x2800,
  450.     0x0180,0x2000,0x4100,0x2800,0x00F0,0x2000,0x4100,0x2800,
  451.     0x008F,0xFF00,0x4148,0x18C0,0x0080,0x29F4,0x7FC8,0xF120,
  452.     0x3D00,0x5E9A,0x7149,0x1220,0x4380,0x5092,0x494B,0x12C0,
  453.     0x8240,0x9092,0x454D,0x1B08,0x8C21,0x0F12,0x4338,0xE4F0,
  454.     0x701E,0x0001,0x1108,0x0000,0x0000,0x0000,0xE018,0x0000,
  455.     0x0000,0x0000,0x0018,0x0000,0x0000,0x0000,0x0028,0x0000,
  456.     0x0000,0x0000,0x0028,0x0000,0x0000,0x0000,0x0028,0x0000,
  457.     0x0000,0x0000,0x0010,0x0000
  458. };
  459.  
  460. struct Image Image2 = {
  461.     0,0,    /* XY origin relative to container TopLeft */
  462.     61,25,    /* Image width and height in pixels */
  463.     3,    /* number of bitplanes in Image */
  464.     ImageData2,    /* pointer to ImageData */
  465.     0x0007,0x0000,    /* PlanePick and PlaneOnOff */
  466.     NULL    /* next Image structure */
  467. };
  468.  
  469. struct Gadget Gadget79 = {
  470.     NULL,    /* next gadget */
  471.     115,73,    /* origin XY of hit box relative to window TopLeft */
  472.     13,8,    /* hit box width and height */
  473.     GADGIMAGE,    /* gadget flags */
  474.     RELVERIFY,    /* activation flags */
  475.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  476.     (APTR)&Image2,    /* gadget border or image to be rendered */
  477.     NULL,    /* alternate imagery for selection */
  478.     NULL,    /* first IntuiText structure */
  479.     NULL,    /* gadget mutual-exclude long word */
  480.     NULL,    /* SpecialInfo structure */
  481.     NULL,    /* user-definable data */
  482.     NULL    /* pointer to user-definable data */
  483. };
  484.  
  485. SHORT BorderVectors8[] = {
  486.     0,0,
  487.     76,0,
  488.     76,17,
  489.     0,17,
  490.     0,0
  491. };
  492. struct Border Border8 = {
  493.     -2,-1,    /* XY origin relative to container TopLeft */
  494.     1,0,JAM1,    /* front pen, back pen and drawmode */
  495.     5,    /* number of XY vectors */
  496.     BorderVectors8,    /* pointer to XY vectors */
  497.     NULL    /* next border in list */
  498. };
  499.  
  500. struct IntuiText IText8 = {
  501.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  502.     1,4,    /* XY origin relative to container TopLeft */
  503.     NULL,    /* font pointer or NULL for default */
  504.     (UBYTE *)"I read it",    /* pointer to text */
  505.     NULL    /* next IntuiText structure */
  506. };
  507.  
  508. struct Gadget Gadget78 = {
  509.     &Gadget79,    /* next gadget */
  510.     111,102,    /* origin XY of hit box relative to window TopLeft */
  511.     73,16,    /* hit box width and height */
  512.     NULL,    /* gadget flags */
  513.     ENDGADGET,    /* activation flags */
  514.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  515.     (APTR)&Border8,    /* gadget border or image to be rendered */
  516.     NULL,    /* alternate imagery for selection */
  517.     &IText8,    /* first IntuiText structure */
  518.     NULL,    /* gadget mutual-exclude long word */
  519.     NULL,    /* SpecialInfo structure */
  520.     NULL,    /* user-definable data */
  521.     NULL    /* pointer to user-definable data */
  522. };
  523.  
  524. #define GadgetList2 Gadget78
  525.  
  526. struct IntuiText IText15 = {
  527.     6,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  528.     48,6,    /* XY origin relative to container TopLeft */
  529.     NULL,    /* font pointer or NULL for default */
  530.     (UBYTE *)"About Patedit",    /* pointer to text */
  531.     NULL    /* next IntuiText structure */
  532. };
  533.  
  534. struct IntuiText IText14 = {
  535.     5,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  536.     3,72,    /* XY origin relative to container TopLeft */
  537.     NULL,    /* font pointer or NULL for default */
  538.     (UBYTE *)"to SetAfPt.",    /* pointer to text */
  539.     &IText15    /* next IntuiText structure */
  540. };
  541.  
  542. struct IntuiText IText13 = {
  543.     5,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  544.     3,61,    /* XY origin relative to container TopLeft */
  545.     NULL,    /* font pointer or NULL for default */
  546.     (UBYTE *)"for the structs to pass",    /* pointer to text */
  547.     &IText14    /* next IntuiText structure */
  548. };
  549.  
  550. struct IntuiText IText12 = {
  551.     5,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  552.     3,50,    /* XY origin relative to container TopLeft */
  553.     NULL,    /* font pointer or NULL for default */
  554.     (UBYTE *)"fills.  It creates c code",    /* pointer to text */
  555.     &IText13    /* next IntuiText structure */
  556. };
  557.  
  558. struct IntuiText IText11 = {
  559.     5,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  560.     2,38,    /* XY origin relative to container TopLeft */
  561.     NULL,    /* font pointer or NULL for default */
  562.     (UBYTE *)"needed for patterned area",    /* pointer to text */
  563.     &IText12    /* next IntuiText structure */
  564. };
  565.  
  566. struct IntuiText IText10 = {
  567.     5,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  568.     4,27,    /* XY origin relative to container TopLeft */
  569.     NULL,    /* font pointer or NULL for default */
  570.     (UBYTE *)"help create the patterns",    /* pointer to text */
  571.     &IText11    /* next IntuiText structure */
  572. };
  573.  
  574. struct IntuiText IText9 = {
  575.     5,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  576.     5,17,    /* XY origin relative to container TopLeft */
  577.     NULL,    /* font pointer or NULL for default */
  578.     (UBYTE *)"Patedit is a program to",    /* pointer to text */
  579.     &IText10    /* next IntuiText structure */
  580. };
  581.  
  582. #define IntuiTextList2 IText9
  583.  
  584. struct Requester RequesterStructure2 = {
  585.     NULL,    /* previous requester (filled in by Intuition) */
  586.     114,10,    /* requester XY origin relative to TopLeft of window */
  587.     206,129,    /* requester width and height */
  588.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  589.     &GadgetList2,    /* gadget list */
  590.     NULL,    /* box's border */
  591.     &IntuiTextList2,    /* requester text */
  592.     NULL,    /* requester flags */
  593.     0,    /* back-plane fill pen */
  594.     NULL,    /* leave these alone */
  595.     NULL,    /* custom bitmap if PREDRAWN is set */
  596.     NULL    /* leave this alone */
  597. };
  598.  
  599.  
  600. void HandleEvent(object)
  601. APTR object;
  602. {
  603.   if (object == (APTR)&MenuItem1) { Loadit(object); return; }
  604.   if (object == (APTR)&MenuItem2) { Saveit(object); return; }
  605.   if (object == (APTR)&MenuItem3) { tellit(object); return; }
  606.   if (object == (APTR)&MenuItem4) { quit(object); return; }
  607.   if (object == (APTR)&Pen1) { DoPen1(object); return; }
  608.   if (object == (APTR)&Pen2) { DoPen2(object); return; }
  609.   if (object == (APTR)&Gadget3) { Clearit(object); return; }
  610.   if (object == (APTR)&Sizer) { SetSize(object); return; }
  611.   if (object == (APTR)&Grid) { DoGrid(object); return; }
  612. }
  613. #define HANDLEEVENT HandleEvent
  614.  
  615. /* end of PowerWindows source generation */
  616.